package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(50)"`
}
type Post struct {
	gorm.Model
	Title   string `gorm:"type:varchar(50)"`
	Content string `gorm:"type:text"`
	Author  string `gorm:"type:varchar(50)"`
}
type Collection struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Pid int `gorm:"type:int"`
}
type CollectionList struct {
	CollectionID int
	Username     string
	Pid          int
	Uid          int
	Title        string
	Content      string
	Author       string
}
